import App from './App'
import p from './utils/public';
// import "./common/config/public";
import Http from './common/service/export.js';
import config from "./common/config/index.js";
import utils from "./common/utils/index.js";
import music from './common/config/music.js'//音乐


import uView from "uview-ui";
Vue.use(uView);

Vue.prototype.$music = music
Vue.prototype.$p = p;
Vue.prototype.$http = Http;
Vue.prototype.$msg = function(tit = '', data = 'none') {
	uni.showToast({
		icon: data,
		title: tit
	})
}

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif